<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<div id="sysMenuToolbar" >
		<div style="position:fixed;z-index:999999;margin-top:15px;margin-left:5px">
			<a href="javascript:;" class="easyui-linkbutton l-btn l-btn-small l-btn-selected" onclick="sysMenu.toolbar.showAddDialog();" data-options="
			iconCls:'icon-add',
			plain:false">
				新增(ALT+A)
			</a>
			<a href="javascript:;" class="easyui-linkbutton l-btn-selected" onclick="sysMenu.toolbar.showUpdateDialog();" data-options="
			iconCls:'icon-edit',
			plain:false">
				修改(ALT+C)
			</a>
			<a href="javascript:;" class="easyui-linkbutton l-btn-selected" onclick="sysMenu.toolbar.updateState();" data-options="
			iconCls:'icon-remove',
			plain:false">
				删除
			</a>
			<a href="javascript:;" class="easyui-linkbutton l-btn-selected" onclick="sysMenu.toolbar.redo();" data-options="
			iconCls:'icon-redo',
			plain:false">
				取消(ALT+Z)
			</a>
	</div>
</div>

<div id="sysMenuAddDialog" class="easyui-dialog "  style="width:350px;height:300px;padding:10px" data-options="
title:'新增菜单',
buttons:'#sysMenuAddButtons',
closed: true,
onClose:sysMenu.toolbar.resetAddFrom">
	<div class="site">
	<form id="sysMenuAddFrom" method="post">
	  <div class="fitem" style="margin-bottom:15px"> 
            <label> 
                                                         父级菜单：
            </label> 
            <input type="text" name="" class="easyui-combobox addParentMenu" data-options=" 
					required:true,
					url:'<%=request.getContextPath()%>/sys/menu/listParentMenus',
					method:'post',
					valueField:'id',
					textField:'text',
					editable:false,
					panelHeight:'auto'
					" value="--请选择--"  >
       </div> 
         <div class="fitem" style="margin-bottom:15px"> 
           <label> 
               	菜单名称：
           </label> 
           <input type="text" id="hiddenInput" style="display: none"/><input class="easyui-textbox" type="text" name="text" data-options="required:true"/>
       </div> 
       <div class="fitem" style="margin-bottom:15px"> 
           <label> 
               	地址链接：
           </label> 
           <input class="easyui-textbox" type="text" name="url" data-options="required:true"/>
       </div>
       <div class="fitem" style="margin-bottom:15px"> 
           <label> 
               	O R C?：　
           </label> 
           <select name="state" id="" class="easyui-combobox" data-options="width: 70, panelHeight: 'auto'" >
				<option value="open">open</option>
				<option value="close">close</option>
			</select>
       </div> 
       <div class="fitem" style="margin-bottom:15px"> 
           <label> 
               	ENABLE?：
           </label> 
           <select name="enable" id="" class="easyui-combobox" data-options="width: 70, panelHeight: 'auto'" >
				<option value="1">启用</option>
				<option value="2">禁用</option>
			</select>
       </div> 
	     </form>
	  </div>
</div>
<div id="sysMenuAddButtons">
	<a href="javascript:;" onclick="sysMenu.toolbar.add()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-add',
	plain: true">
		新增
	</a>
	<a href="javascript:;" onclick="sysMenu.toolbar.hiddenAddDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>


<div id="sysMenuUpdateDialog" class="easyui-dialog sysMenu-update" style="width:350px;height:300px;padding:10px"  data-options="
title:'修改菜单',
buttons:'#sysMenuUpdateButtons',
closed: true,
onClose:sysMenu.toolbar.resetUpdateForm">
	<div class="site">
	<form id="sysMenuUpdateFrom" method="post">
	<div class="fitem" id="hideParentMenu" style="margin-bottom:15px"> 
            <label> 
                                                         父级菜单：
            </label> 
            <input type="text" name="pid" class="easyui-combobox updateParentMenu" data-options=" 
			required:true,
			url:'<%=request.getContextPath()%>/sys/menu/listParentMenus',
			method:'post',
			valueField:'id',
			textField:'text',
			editable:false,
			panelHeight:'auto'"
			 >
       </div> 
         <div class="fitem" style="margin-bottom:15px"> 
           <label> 
               	菜单名称：
           </label> 
           <input type="text" style="display:none" name="id" /><input type="text" name="text" id="updateText" class="easyui-textbox" data-options=" required:true">
       </div> 
       <div class="fitem" id="hideParentURL" style="margin-bottom:15px"> 
           <label> 
               	地址链接：
           </label> 
          <input type="text" name="url" class="easyui-textbox" data-options="">
       </div>
       <div class="fitem" style="margin-bottom:15px"> 
           <label> 
               	O R C?：　
           </label> 
           <select name="state" id="" class="easyui-combobox" data-options="width: 70, panelHeight: 'auto'" >
				<option value="open">open</option>
				<option value="close">close</option>
			</select>
       </div> 
       <div class="fitem" style="margin-bottom:15px"> 
           <label> 
               	ENABLE?：
           </label> 
           <select name="enable" id="" class="easyui-combobox" data-options="width: 70, panelHeight: 'auto'" >
				<option value="1">启用</option>
				<option value="2">禁用</option>
			</select>
       </div> 
	</form>
	</div>
</div>
<div id="sysMenuUpdateButtons">
	<a href="javascript:;" onclick="sysMenu.toolbar.update()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-add',
	plain: true">
		修改
	</a>
	<a href="javascript:;" onclick="sysMenu.toolbar.hiddenUpdateDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>
<div style="width:100%;height:55px"></div>
<div id="sysMenuTreegrid" style="width:100%;"></div>
<script type="text/javascript" src="<%=request.getContextPath() %>/statics/sys/scripts/menu/menu.js"></script>
